<template>
  <div class="block">
    <el-carousel height="520px" trigger="click" class="carousel no-scrollbar">
      <el-carousel-item v-for="item in carouselData" :key="item">
        <el-image
            style="width: 100%; height: 520px"
            :src="item"
            fit="contain"/>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
  import {carouselData} from "@/mock-data/home";

  export default {
    name: "HomeCarousel",
    data() {
      return {
        carouselData
      }
    }
  }
</script>

<style scoped>
  .block {
    overflow: hidden;
  }
</style>